package net.trustie.dao;


import net.trustie.model.iteye_blog_Model;

import org.apache.ibatis.annotations.Insert;

public interface IteyeBlog_Dao {
	
	/*标准表中的字段*//*+ "insert into t_knowledge (`deal_title`,`author`,`content`,`tags`,`reply_num`,
	 * `view_num`,`vote_num`,`collection_num`,`abstract`,`type`,`crawled_time`,`url`,`created_time`,
	 * `category`,`source`,`history`,`author_url`,`last_time`,`url_md5`")*/
	
	/*标准表中剩余的字段 #{collection_num},#{abstract},#{type},#{crawled_time},#{category},#{source},#{last_time},#{url_md5}
	*/
	
	@Insert("insert into iteye_blog"
			+ "(`url`,`title`,`tags`,`category`,`content`,`favor_num`,`dislike_num`,"
			+ "`review_num`,`view_num`,`created_time`,`extracted_time`,`author`,`author_url`,`type`,`url_md5`,`blog_category`)"			
			
			+ " values (#{questionUrl},#{questionTitle},#{tag},#{categories},#{questionContent},#{voteUp},"
			+ "#{voteDown},#{answerNum},#{view_num},#{postTime},#{extractTime},#{author},#{authorUrl},#{type},#{url_md5},#{blog_category})")
	
	       /*1标准表中独有,设置为允许为空,INSERT需要补齐*/
          /*2与标准表对应字段*/
         /*3原社区中独有保留字段*/
	
			/*@Insert("insert into iteye_blog"
			+ "(`3blog_id`,`2url`,`2deal_title`,`2tags`,`2category`,`2content`,`2vote_num`,"
			+ "`3voteDown`,`2reply_num`,`2view_num`,`2created_time`,`3extractTime`,`2author`,`2author_url`,`3pageMD5`,`2history`,"
			+ "`collection_num`,`abstract`,`2type`,`crawled_time`,`category`,`source`,`last_time`,`url_md5`)"*/
	
	
	public int add(iteye_blog_Model blog_Model);
}
